#!/usr/bin/env python
# -*- coding:utf-8 -*-

from flask_restful import Api

from . import pptgen_blueprint
from api_1_0.pptGenResource.pptGenResource import PptGenResource
from api_1_0.pptGenResource.pptGenOtherResource import PptGenOtherResource

api = Api(pptgen_blueprint)

api.add_resource(PptGenResource, '/pptGen/<gen_id>', '/pptGen', endpoint='PptGen')


@pptgen_blueprint.route('/ppt-gen/basic', methods=['POST'], endpoint='PptGenBasic')
def ppt_generation_with_basic_structure():
    return PptGenOtherResource.ppt_generation_with_basic_structure()

@pptgen_blueprint.route('/ppt-show', methods=['GET'], endpoint='PptGenShow')
def ppt_generation_show():
    return PptGenResource.get_ppt()